package com.bw.skill.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bw.skill.R;
import com.bw.skill.entity.SeckillEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/27 0027 上午 9:13
 *
 */
class SeckillAdapter extends BaseQuickAdapter<SeckillEntity.DataBean, BaseViewHolder> {
    public SeckillAdapter() {
        super(R.layout.item_seckill);
    }


    @Override
    protected void convert(BaseViewHolder baseViewHolder, SeckillEntity.DataBean dataBean) {
        Glide.with(getContext()).load(dataBean.getGoods_default_icon()).into((ImageView) baseViewHolder.getView(R.id.seckill_item_img));
        baseViewHolder.setText(R.id.seckill_item_title,dataBean.getGoods_desc());
        baseViewHolder.setText(R.id.seckill_item_dec,dataBean.getGoods_default_sku());
        baseViewHolder.setText(R.id.seckill_item_price,dataBean.getGoods_default_price());

    }
}
